import request from '@/utils/request'

export function getDeviceApplyList(params) {
  return request({ url: '/online/developer-admin/developer/device/apply/list', params, method: 'GET'
  })
}
export function getDeviceList(params) {
  return request({ url: '/online/developer-admin/developer/device/list', params, method: 'GET'
  })
}
export function rejectDeviceApply(data) {
  return request({ url: '/online/developer-admin/developer/device/apply/reject', data, method: 'POST'
  })
}
export function approveDeviceApply(data) {
  return request({ url: `/online/developer-admin/developer/device/apply/approve`, data, method: 'POST'
  })
}
export function sendDevice(data) {
  return request({ url: '/online/developer-admin/developer/device/send', data, method: 'POST'
  })
}
export function receiptedDevice(developerDeviceId, data) {
  return request({ url: `/online/developer-admin/developer/device/${developerDeviceId}/receipted`, data, method: 'POST'
  })
}
